package com.sang.feign;

import com.sang.VO.UserVO;
import com.sang.pojo.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(value = "order-service")
public interface OrderFeign {
    @GetMapping("orderService/{id}")
    public List<Order> findOrderByUserName(@PathVariable("id") String id);
}
